# print((lambda x:f"({x[:3]}){x[3:][:-3]}-{x[-3:]}")(input()))
def deal(x):
    a=x[:3]
    b=x[3:7]
    c=x[7:]
    output='('+a+')'+b+'-'+c
    return output
print(deal(input()))
